package com.coolgor.axnut.dto.seal;

import java.util.List;

import com.coolgor.axnut.entity.seal.SealCategory;
import com.coolgor.axnut.enums.seal.SealCategoryOperationStateEnum;

public class SealCategoryExecution {
	// 结果状态
	private int state;

	// 状态标识
	private String stateInfo;

	// 执行结果的数量
	private int count;

	// 操作的对象(增删改的时候用到)
	private SealCategory sealCategory;

	// 获取的结果列表(查询列表的时候使用)
	private List<SealCategory> list;

	public SealCategoryExecution() {	}

	// 操作失败的时候使用的构造器
	public SealCategoryExecution(SealCategoryOperationStateEnum stateEnum) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}

	// 增删改 操作成功的时候使用的构造器
	public SealCategoryExecution(SealCategoryOperationStateEnum stateEnum, SealCategory sealCategory) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.sealCategory = sealCategory;
	}

	// 查询 操作成功的时候使用的构造器
	public SealCategoryExecution(SealCategoryOperationStateEnum stateEnum, List<SealCategory> list) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.list = list;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public SealCategory getSealCategory() {
		return sealCategory;
	}

	public void setSealCategory(SealCategory sealCategory) {
		this.sealCategory = sealCategory;
	}

	public List<SealCategory> getList() {
		return list;
	}

	public void setList(List<SealCategory> list) {
		this.list = list;
	}

}
